﻿using System.Collections.Generic;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Epitech.Krisk.Xna.UI.Game.InGame.Gameplay
{
    public enum CardType
    {
        Soldier,
        Tank,
        Warplane,
        Joker
    }

    public class TerritoryCard
    {
        public static List<TerritoryCard> TerritoryCards { get; set; }

        public static void MakeCards(ContentManager content)
        {
            TerritoryCards = new List<TerritoryCard>();

            #region Cards
            
            TerritoryCard tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/afrique-nord") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/afrique-orientale") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/afrique-sud") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/alaska") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/alberta") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/argentine") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/australie-occidentale") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/borneo") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/bresil") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/congo") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/egypte") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/etat-est") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/etat-ouest") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/europe-nord") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/europe-occidentale") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/europe-sud") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/galles-sud") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/grande-bretagne") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/grand-ouest") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/groenland") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/indes") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/islande") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/japon") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/kazakstan") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/khabarovsk") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/madagascar") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/mexique") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/mongolie") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/moyen-orient") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/nouvelle-guinee") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/ontario") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/oural") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/perou") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/quebec") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/scandinavie") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/siam") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/siberie") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Soldier, Texture = content.Load<Texture2D>("Game/Cards/tchita") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/tibet") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/ukraine") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Warplane, Texture = content.Load<Texture2D>("Game/Cards/venezuela") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Tank, Texture = content.Load<Texture2D>("Game/Cards/yakoutie") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Joker, Texture = content.Load<Texture2D>("Game/Cards/card_joker") };
            TerritoryCards.Add(tmp);
            tmp = new TerritoryCard { CardType = CardType.Joker, Texture = content.Load<Texture2D>("Game/Cards/card_joker") };
            TerritoryCards.Add(tmp);

            #endregion
        }

        public CardType CardType { get; set; }
        public Texture2D Texture { get; set; }
    }
}
